package com.user.service;


import com.user.entity.User;

import java.util.List;

public interface UserService {
    //增删查改列表
    public void addUser(User user);

    public void deleteUser(int id);

    public User loadUser(int uid);//根据id查询

    public User loadUser(String uname);//根据name查询

    public void update(User user);

    public List<User> list();

    public User login(String uname, String uPwd);

    public boolean isExist(String uname);
}